@echo off

if not exist server\ebin md server\ebin
del /q server\ebin\*

del /q server\src\pb\*
xcopy %CD%\..\..\data\erlang\* server\src\pb\ /y
xcopy %CD%\..\..\data\erlang.common\* server\include\ /y

cd server\
erl -noshell -s make all -s init stop

erl -pa ebin -s server
